#include <cstdio>

int main() {
	int N, m;
	char c;
	scanf("%d %c", &N, &c);
	if (N % 2) m = (N+1)/2;
	else m = N/2;

	for (int i = 1; i <= m; i++) {
		printf("%c", c);
		for (int j = 2; j < N; j++) {
			if (i == 1 || i == m) {
				printf("%c", c);
			} else {
				printf(" ");
			}
		}
		printf("%c\n", c);
	}

	
	return 0;
}
